dojo.declare("MHomeMenuPg", wm.Page, {
start: function() {
},
"preferredDevice": "phone",
picture1Click: function(inSender) {
this.lvCategories.filter.setValue('department.departmentName', 'Kitchen');
this.lvCategories.update();
this.layer2.activate();
},
list1Select: function(inSender, inItem) {
this.lvItems.update();
this.layer3.activate();
},
picture2Click: function(inSender) {
this.lvCategories.filter.setValue('department.departmentName', 'Refridgerator');
this.lvCategories.update();
this.layer2.activate();
},
picture3Click: function(inSender) {
this.lvCategories.filter.setValue('department.departmentName', 'Bedroom');
this.lvCategories.update();
this.layer2.activate();
},
bAddQtyClick: function(inSender) {
if (this.txtQuantity) {
// alert(isNaN(this.txtQuantity.getDataValue()));
if (this.txtQuantity.getDisplayValue()) {
this.txtQuantity.setDisplayValue(+this.txtQuantity.getDataValue() + 1);
} else {
this.txtQuantity.setDisplayValue(1);
}
}
/**
var rowIndex = this.list2.selectedItem.getData().itemId;
for (var count = 0; count < this.lvItems.getCount(); count++) {
var vItem = this.lvItems.getItem(count);
if (vItem.data.itemId === rowIndex) {
if (vItem.data.tax) {
vItem.data.tax = vItem.data.tax + 1;
this.txtQuantity.setDataValue(vItem.data.tax);
} else {
vItem.data.tax = 1;
this.txtQuantity.setDataValue(1);
}
this.lvItems.setItem(count, vItem);
}
}**/
},
bRemoveQtyClick: function(inSender) {
if (this.txtQuantity) {
if (this.txtQuantity.getDisplayValue() > 0) {
this.txtQuantity.setDisplayValue(+this.txtQuantity.getDisplayValue() - 1);
} else {
this.txtQuantity.setDisplayValue(0);
}
}
/**
var rowIndex = this.list2.selectedItem.getData().itemId;
for (var count = 0; count < this.lvItems.getCount(); count++) {
var vItem = this.lvItems.getItem(count);
if (vItem.data.itemId === rowIndex) {
if (vItem.data.tax) {
vItem.data.tax = vItem.data.tax - 1;
this.txtQuantity.setDataValue(vItem.data.tax);
} else {
vItem.data.tax = 1;
this.txtQuantity.setDataValue(1);
}
this.lvItems.setItem(count, vItem);
}
}**/
//var quantity=this.txtQuantity.getDataValue();
// if(!quantity)
//    quantity=0;
//    quantity=quantity-1;
//    this.txtQuantity.setDataValue(quantity);
},
list2Select: function(inSender, inItem) {
var quantity = this.list2.selectedItem.getData().quantity;
if (quantity) {
this.txtQuantity.setDisplayValue(quantity);
} else {
this.txtQuantity.setDisplayValue(1);
}
/**
for (var count = 0; count < this.lvItems.getCount(); count++) {
var vItem = this.lvItems.getItem(count);
if (vItem.data.itemId === rowIndex) {
if (vItem.data.tax) {
this.txtQuantity.setDataValue(vItem.data.tax);
} else {
//vItem.data.tax = 1;
this.txtQuantity.setDataValue(1);
}
this.lvItems.setItem(count, vItem);
//this.lvItems.setItem(count, vItem);
}
}**/
this.designableDialog1.show();
},
bAddToCartClick: function(inSender) {
if (+this.txtQuantity.getDataValue() > 0) {
var selItemId = this.list2.selectedItem.getData().itemId;
for (var count = 0; count < this.lvItems.getCount(); count++) {
var vItem = this.lvItems.getItem(count);
if (vItem.data.itemId === selItemId) {
if (app.vCartItems.getCount() > 0) {
var isMatchFound = false;
var cartCount = app.vCartItems.getCount();
for (var count1 = 0; count1 < cartCount; count1++) {
var vcartItem = app.vCartItems.getItem(count1);
if (vcartItem.data.itemId === selItemId) {
vcartItem.data.quantity = +this.txtQuantity.getDataValue();
vItem.data.quantity = this.txtQuantity.getDataValue();
app.vCartItems.setItem(count1, vcartItem);
this.lvItems.setItem(count, vItem);
isMatchFound = true;
}
}
if (!isMatchFound) {
vItem.data.quantity = +this.txtQuantity.getDataValue();
this.lvItems.setItem(count, vItem);
app.vCartItems.addItem(vItem);
}
} else {
vItem.data.quantity = +this.txtQuantity.getDataValue();
this.lvItems.setItem(count, vItem);
app.vCartItems.addItem(vItem, count);
// var vItem1 = this.lvItems.getItem(count);
// alert(vItem1.data.quantity);
}
}
}
}
this.designableDialog1.hide();
},
list2PHONE_COLUMNFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
//	var itemsFormat=' "<div class='MobileRow'>" +"Item Name: " + ${itemName} + "</div>"+ "<div class='MobileRow'>" +"Unit: " + ${unit} + "</div>"+ "<div class='MobileRow'>" +"Item Price: " + ${itemPrice} + "</div>"';
//      return itemsFormat;
},
list2ItemIdFormat: function(inValue, rowId, cellId, cellField, cellObj, rowObj) {
var itemsFormat = "<div class='MobileRow'>" + " " + rowObj.itemName + "</div>" + "<div class='MobileRow'>" + " " + rowObj.unit + "</div>"
+ "<div class='MobileRow'>" + " Price: " + rowObj.itemPrice + " " + rowObj.currency + "</div>";
return itemsFormat;
},
button4Click1: function(inSender) {
//	this.list2.clearSelection();
},
_end: 0
});

MHomeMenuPg.widgets = {
lvCategories: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.ecartdb.data.Category"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.ecartdb.data.Category","view":[
{"caption":"CategoryId","sortable":true,"dataIndex":"categoryId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"CategoryName","sortable":true,"dataIndex":"categoryName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"UdatedBy","sortable":true,"dataIndex":"udatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"UpdatedTs","sortable":true,"dataIndex":"updatedTs","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null}
]}, {}],
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"listDepartment.selectedItem.departmentName","targetProperty":"filter.department.departmentName"}, {}]
}]
}],
lvDepartment: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","maxResults":50,"type":"com.ecartdb.data.Department"}, {}, {
liveView: ["wm.LiveView", {"dataType":"com.ecartdb.data.Department","view":[
{"caption":"DepartmentId","sortable":true,"dataIndex":"departmentId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"DepartmentName","sortable":true,"dataIndex":"departmentName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"UdatedBy","sortable":true,"dataIndex":"udatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"UpdatedTs","sortable":true,"dataIndex":"updatedTs","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null}
]}, {}]
}],
lvItems: ["wm.LiveVariable", {"inFlightBehavior":"executeLast","type":"com.ecartdb.data.Item"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"list1.selectedItem.categoryName","targetProperty":"filter.category.categoryName"}, {}]
}],
liveView: ["wm.LiveView", {"dataType":"com.ecartdb.data.Item","related":["category"],"view":[
{"caption":"ItemId","sortable":true,"dataIndex":"itemId","type":"java.lang.Integer","displayType":"Number","required":true,"readonly":true,"includeLists":true,"includeForms":true,"order":0,"subType":null},
{"caption":"ItemName","sortable":true,"dataIndex":"itemName","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":1,"subType":null},
{"caption":"ItemDesc","sortable":true,"dataIndex":"itemDesc","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":2,"subType":null},
{"caption":"OutOfStock","sortable":true,"dataIndex":"outOfStock","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":3,"subType":null},
{"caption":"Unit","sortable":true,"dataIndex":"unit","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":4,"subType":null},
{"caption":"Discount","sortable":true,"dataIndex":"discount","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":5,"subType":null},
{"caption":"VendorPrice","sortable":true,"dataIndex":"vendorPrice","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":6,"subType":null},
{"caption":"AvailibilityStartDt","sortable":true,"dataIndex":"availibilityStartDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":7,"subType":null},
{"caption":"AvailibilityEndDt","sortable":true,"dataIndex":"availibilityEndDt","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":8,"subType":null},
{"caption":"Tax","sortable":true,"dataIndex":"tax","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":9,"subType":null},
{"caption":"Active","sortable":true,"dataIndex":"active","type":"java.lang.Boolean","displayType":"CheckBox","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":10,"subType":null},
{"caption":"ImageUr","sortable":true,"dataIndex":"imageUr","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":11,"subType":null},
{"caption":"Currency","sortable":true,"dataIndex":"currency","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":12,"subType":null},
{"caption":"OtherCharges","sortable":true,"dataIndex":"otherCharges","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":13,"subType":null},
{"caption":"DeliveryCharges","sortable":true,"dataIndex":"deliveryCharges","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":14,"subType":null},
{"caption":"ServiceTax","sortable":true,"dataIndex":"serviceTax","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":15,"subType":null},
{"caption":"Vat","sortable":true,"dataIndex":"vat","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":16,"subType":null},
{"caption":"BaseValue","sortable":true,"dataIndex":"baseValue","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":17,"subType":null},
{"caption":"UpdatedBy","sortable":true,"dataIndex":"updatedBy","type":"java.lang.String","displayType":"Text","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":18,"subType":null},
{"caption":"UpdatedTs","sortable":true,"dataIndex":"updatedTs","type":"java.util.Date","displayType":"Date","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":19,"subType":null},
{"caption":"ItemPrice","sortable":true,"dataIndex":"itemPrice","type":"java.math.BigDecimal","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":20,"subType":null},
{"caption":"Quantity","sortable":true,"dataIndex":"quantity","type":"java.lang.Integer","displayType":"Number","required":false,"readonly":false,"includeLists":true,"includeForms":true,"order":21,"subType":null}
]}, {}]
}],
designableDialog1: ["wm.DesignableDialog", {"buttonBarId":"buttonBar","containerWidgetId":"containerWidget","height":"100%","title":"Add To cart","width":"100%"}, {}, {
containerWidget: ["wm.Container", {"_classes":{"domNode":["wmdialogcontainer","MainContent"]},"autoScroll":true,"height":"100%","horizontalAlign":"left","padding":"5","verticalAlign":"top","width":"100%"}, {}, {
panel16: ["wm.Panel", {"height":"307px","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
label8: ["wm.Label", {"height":"30px","padding":"4","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"list2.selectedItem.itemName","targetProperty":"caption"}, {}]
}]
}],
panel17: ["wm.Panel", {"height":"108px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
picture7: ["wm.Picture", {"aspect":"h"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"list2.selectedItem.imageUr","targetProperty":"source"}, {}]
}]
}],
panel18: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"middle","width":"100%"}, {}, {
label10: ["wm.Label", {"align":"left","height":"30px","padding":"4","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"list2.selectedItem.unit","targetProperty":"caption"}, {}]
}]
}],
label11: ["wm.Label", {"height":"30px","padding":"4","width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"${list2.selectedItem.itemPrice} + ' ' +${list2.selectedItem.currency}","targetProperty":"caption"}, {}]
}]
}]
}]
}],
label9: ["wm.Label", {"height":"100%","padding":"4","singleLine":false,"width":"100%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"list2.selectedItem.itemDesc","targetProperty":"caption"}, {}]
}]
}]
}],
panel14: ["wm.Panel", {"height":"60px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"middle","width":"100%"}, {}, {
bRemoveQty: ["wm.Button", {"border":"1","caption":undefined,"height":"50px","iconHeight":"20px","iconWidth":"20px","imageIndex":14,"imageList":"app.silkIconList","margin":"4","mobileHeight":"50px","width":"69px"}, {"onclick":"bRemoveQtyClick"}],
txtQuantity: ["wm.Number", {"border":"0","caption":"Quantity","captionAlign":"center","captionSize":"75px","dataValue":undefined,"desktopHeight":"35px","displayValue":"","height":"40px","mobileHeight":"40px","singleLine":false,"width":"130px"}, {}],
bAddQty: ["wm.Button", {"border":"1","caption":undefined,"height":"50px","imageIndex":1,"imageList":"app.silkIconList","margin":"4","mobileHeight":"50px","width":"70px"}, {"onclick":"bAddQtyClick"}]
}]
}],
buttonBar: ["wm.ButtonBarPanel", {"border":"1,0,0,0","borderColor":"black","height":"43px","mobileHeight":"43px"}, {}, {
panel15: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
button4: ["wm.Button", {"border":"1","caption":"Cancel","height":"40px"}, {"onclick":"designableDialog1.hide","onclick1":"button4Click1"}]
}],
bAddToCart: ["wm.Button", {"border":"1","caption":"Add to cart","height":"40px","imageIndex":22,"imageList":"app.silkIconList","margin":"4","width":"100px"}, {"onclick":"bAddToCartClick"}]
}]
}],
layoutBox1: ["wm.Layout", {"horizontalAlign":"left","styles":{},"verticalAlign":"top"}, {}, {
layers1: ["wm.Layers", {"defaultLayer":3}, {}, {
layer1: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
panel1: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
panel2: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel5: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
picture1: ["wm.Picture", {"height":"100%","source":"resources/images/logos/IOS/wavemaker_144x144.png","width":"100%"}, {"onclick":"picture1Click"}],
label1: ["wm.Label", {"caption":"Kitchen","height":"50px","padding":"4","width":"100%"}, {}]
}],
panel6: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
picture2: ["wm.Picture", {"height":"100%","source":"resources/images/logos/IOS/wavemaker_144x144.png","width":"100%"}, {"onclick":"picture2Click"}],
label2: ["wm.Label", {"caption":"Refridgerator","height":"50px","padding":"4","width":"100%"}, {}]
}]
}],
panel3: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel7: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
picture3: ["wm.Picture", {"height":"100%","source":"resources/images/logos/IOS/wavemaker_144x144.png","width":"100%"}, {"onclick":"picture3Click"}],
label3: ["wm.Label", {"caption":"Bedroom","height":"50px","padding":"4","width":"100%"}, {}]
}],
panel8: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
picture4: ["wm.Picture", {"height":"100%","source":"resources/images/logos/IOS/wavemaker_144x144.png","width":"100%"}, {}],
label4: ["wm.Label", {"height":"50px","padding":"4","width":"100%"}, {}]
}]
}],
panel4: ["wm.Panel", {"height":"100%","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"100%"}, {}, {
panel9: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
picture5: ["wm.Picture", {"height":"100%","source":"resources/images/logos/IOS/wavemaker_144x144.png","width":"100%"}, {}],
label5: ["wm.Label", {"height":"50px","padding":"4","width":"100%"}, {}]
}],
panel10: ["wm.Panel", {"height":"100%","horizontalAlign":"left","verticalAlign":"top","width":"100%"}, {}, {
picture6: ["wm.Picture", {"height":"100%","source":"resources/images/logos/IOS/wavemaker_144x144.png","width":"100%"}, {}],
label6: ["wm.Label", {"height":"50px","padding":"4","width":"100%"}, {}]
}]
}]
}]
}],
layer2: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
panel11: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"center","verticalAlign":"top","width":"100%"}, {}, {
label14: ["wm.Label", {"align":"center","caption":"Select Category to shop","height":"35px","padding":"4","styles":{"backgroundColor":"#5fb7f2"},"width":"95%"}, {}],
list1: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":false,"field":"categoryId","title":"CategoryId","width":"80px","align":"left","mobileColumn":false},
{"show":false,"field":"categoryName","title":"CategoryName","width":"100%","align":"left","mobileColumn":true},
{"show":false,"field":"udatedBy","title":"UdatedBy","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"updatedTs","title":"UpdatedTs","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","expression":"","mobileColumn":false},
{"show":true,"controller":"rightarrow","width":"20px","title":"-","field":"_rightArrow","mobileColumn":true}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"0","minDesktopHeight":60,"rightNavArrow":true,"styleAsGrid":false}, {"onSelect":"list1Select"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvCategories","targetProperty":"dataSet"}, {}]
}]
}]
}]
}],
layer3: ["wm.Layer", {"borderColor":"","caption":"layer1","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
panel12: ["wm.Panel", {"autoScroll":true,"height":"100%","horizontalAlign":"center","verticalAlign":"top","width":"100%"}, {}, {
label13: ["wm.Label", {"align":"center","caption":"Select Items and Click to Add to Cart","height":"35px","padding":"4","styles":{"backgroundColor":"#5fb7f2"},"width":"95%"}, {}],
list2: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":false,"field":"updatedTs","title":"UpdatedTs","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"left","formatFunc":"list2PHONE_COLUMNFormat","expression":"\"<div class='MobileRowTitle'>\" +\n\"ItemId: \" + ${wm.runtimeId}.formatCell(\"itemId\", ${itemId}, ${this}, ${wm.rowId}) +\n\"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"ItemDesc: \" + ${itemDesc}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"OutOfStock: \" + ${outOfStock}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"ImageUr: \" + ${imageUr}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Unit: \" + ${unit}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Discount: \" + ${discount}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"VendorPrice: \" + ${vendorPrice}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"AvailibilityStartDt: \" + ${wm.runtimeId}.formatCell(\"availibilityStartDt\", ${availibilityStartDt}, ${this}, ${wm.rowId})\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"AvailibilityEndDt: \" + ${wm.runtimeId}.formatCell(\"availibilityEndDt\", ${availibilityEndDt}, ${this}, ${wm.rowId})\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Tax: \" + ${tax}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Active: \" + ${active}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"Currency: \" + ${currency}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"OtherCharges: \" + ${otherCharges}\n + \"</div>\"\n\n+ \"<div class='MobileRow'>\" +\n\"DeliveryCharges: \" + ${deliveryCharges}\n + \"</div>\"\n\n","mobileColumn":false},
{"show":true,"field":"itemId","title":"ItemId","width":"80px","align":"left","formatFunc":"list2ItemIdFormat","mobileColumn":false},
{"show":true,"field":"itemName","title":"ItemName","width":"100%","align":"left","formatFunc":"list2ItemIdFormat","mobileColumn":true},
{"show":true,"field":"itemDesc","title":"ItemDesc","width":"100%","align":"left","formatFunc":"","editorProps":null,"mobileColumn":false},
{"show":false,"field":"itemPrice","title":"ItemPrice","width":"80px","align":"left","formatFunc":"","editorProps":null,"mobileColumn":false},
{"show":true,"field":"outOfStock","title":"OutOfStock","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"imageUr","title":"ImageUr","width":"100%","align":"left","formatFunc":"","editorProps":null,"mobileColumn":false},
{"show":true,"field":"unit","title":"Unit","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"discount","title":"Discount","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"vendorPrice","title":"VendorPrice","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"availibilityStartDt","title":"AvailibilityStartDt","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":true,"field":"availibilityEndDt","title":"AvailibilityEndDt","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":true,"field":"tax","title":"Tax","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"active","title":"Active","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"currency","title":"Currency","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"otherCharges","title":"OtherCharges","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"deliveryCharges","title":"DeliveryCharges","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"serviceTax","title":"ServiceTax","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"vat","title":"Vat","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"baseValue","title":"BaseValue","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"updatedBy","title":"UpdatedBy","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":false,"field":"quantity","title":"Quantity","width":"80px","displayType":"Number","align":"left","formatFunc":""},
{"show":true,"controller":"rightarrow","width":"20px","title":"-","field":"_rightArrow","mobileColumn":true}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"0","minDesktopHeight":60,"rightNavArrow":true,"styleAsGrid":false}, {"onSelect":"list2Select"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvItems","targetProperty":"dataSet"}, {}],
wire1: ["wm.Wire", {"expression":"!${this.lvItems.isEmpty}","targetProperty":"showing"}, {}]
}]
}],
label15: ["wm.Label", {"align":"center","caption":"No Items in this Category","height":"100px","padding":"4","singleLine":false,"styles":{"backgroundColor":"#5fb7f2"},"width":"95%"}, {}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":"${this.lvItems.isEmpty}","targetProperty":"showing"}, {}]
}]
}]
}]
}],
layerDepartment: ["wm.Layer", {"borderColor":"","caption":"layer4","horizontalAlign":"left","themeStyleType":"","verticalAlign":"top"}, {}, {
panel13: ["wm.Panel", {"height":"100%","horizontalAlign":"center","verticalAlign":"top","width":"100%"}, {}, {
panel19: ["wm.Panel", {"height":"250px","horizontalAlign":"left","layoutKind":"left-to-right","verticalAlign":"top","width":"309px"}, {}, {
picture8: ["wm.Picture", {"aspect":"v","height":"250px","source":"resources/images/mobile/stock-illustration-23182794-online-shopping.jpg","width":"307px"}, {}]
}],
label12: ["wm.Label", {"align":"center","caption":"Select a Department to Shop","height":"35px","padding":"4","styles":{"backgroundColor":"#5fb7f2"},"width":"95%"}, {}],
listDepartment: ["wm.List", {"_classes":{"domNode":["MobileListStyle"]},"columns":[
{"show":true,"field":"departmentId","title":"DepartmentId","width":"80px","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"departmentName","title":"DepartmentName","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"udatedBy","title":"UdatedBy","width":"100%","align":"left","formatFunc":"","mobileColumn":false},
{"show":true,"field":"updatedTs","title":"UpdatedTs","width":"80px","align":"left","formatFunc":"wm_date_formatter","mobileColumn":false},
{"show":false,"field":"PHONE COLUMN","title":"-","width":"100%","align":"center","expression":" \"<div class='MobileRow'>\" +\n\" \" + ${departmentName}\n + \"</div>\"\n+ \"<div class='MobileRow'>\" +\n\"  \" \n\n","isCustomField":true,"mobileColumn":true}
],"headerVisible":false,"height":"100%","isNavigationMenu":true,"margin":"0","minDesktopHeight":60,"styleAsGrid":false}, {"onSelect":"lvCategories","onSelect1":"layer2"}, {
binding: ["wm.Binding", {}, {}, {
wire: ["wm.Wire", {"expression":undefined,"source":"lvDepartment","targetProperty":"dataSet"}, {}]
}]
}]
}]
}]
}]
}]
};

MHomeMenuPg.prototype._cssText = '';
MHomeMenuPg.prototype._htmlText = '';